.box1 {
  width: 300px;
  height: 80px;
  background-color: cornflowerblue;
}
.box1 .box2 {
  float: left;
  width: 50%;
  height: 100%;
  line-height: 80px;
  text-align: center;
}
